﻿@model GameSchoolApplication.Models.ViewModels.UploadLectureModel

<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("uploadLecture", "Material", FormMethod.Post, new { enctype = "multipart/form-data" })) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Lecture</legend>

        Html.HiddenFor(model => model.lectureID)

        <div class="editor-label">
            @Html.LabelFor(model => model.lecture.lvlID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.lecture.lvlID)
            @Html.ValidationMessageFor(model => model.lecture.lvlID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.lecture.name)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.lecture.name)
            @Html.ValidationMessageFor(model => model.lecture.name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.lecture.lectureDesc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.lecture.lectureDesc)
            @Html.ValidationMessageFor(model => model.lecture.lectureDesc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.lecture.allowComments)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.lecture.allowComments)
            @Html.ValidationMessageFor(model => model.lecture.allowComments)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.videoURL)
            @Html.ValidationMessageFor(model => model.videoURL)
        </div>


            <input type="file" name="file" />
            <input type="submit" value="Send" />
       
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

